<?php
/**
 * 后台 通用服务接口
 * Author: lyun
 * Date: 2018/1/23
 * Created by Panxsoft.
 */

Route::group(['prefix'=>'/admin/service', 'middleware'=>'AdminAuth', 'namespace'=>'Admin'], function(){
    // 上传 bos 图片并返回 url
    Route::post('/bos-img-upload', 'BosImageUploadController@store');
    // 上传多张 bos 图片并返回 urls 数组
    Route::post('/bos-img-upload-multi', 'BosImageUploadController@storeMulti');
});

Route::group(['prefix'=>'/admin/service', 'namespace'=>'Admin'], function(){
    // UEditor 服务统一接口
    Route::any('/ueditor', 'UEditorController@index')->name('ueditor');
});

